package com.yy.exception_;

/**
 * chapter12  com.yy.exception_
 * 2023-05-09 22:40
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/5/9 22:40
 */
public class NumberFormatException_ {
    public static void main(String[] args) {
        String name = "yy";//1234
        //将String 转成 int
        int num = Integer.parseInt(name);//抛出NumberFormatException
        System.out.println(num);//1234
    }
}
